﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="column_all.aspx.cs" Inherits="admin_column_column_all" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Lomboz JSP</title>
    <meta http-equiv="pragma" content="no-cache"/>
    <meta http-equiv="cache-control" content="no-cache"/>
    <meta http-equiv="expires" content="0"/>
	<link href="../css/default.css" rel="stylesheet" type="text/css" />
    <link rel="StyleSheet" href="../js/dtree.css"	type="text/css" />
	<script type="text/javascript" src="../js/dtree.js"></script>
</head>
<body bgcolor="#FFFFFF">
    <table width=100% height="600" border="0" align="left" cellpadding="0"
			cellspacing="0" bgcolor="#FFFFFF">
			<tr>
			<td height="413" valign="top">
					<table border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td height="32" valign="bottom">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="30" align="center">
											<img src="../images/icon_channel.gif" width="12"
												height="12" />
										</td>
										<td align="left" width="154">
											栏目管理
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td height="12"></td>
						</tr>
						<tr>
							<td height="1" bgcolor="#AB8C78"></td>
						</tr>
						<tr>
							<td height="2" bgcolor="#C0B9AF"></td>
						</tr>
						<tr>
							<td>
								&nbsp;
							</td>
						</tr>
						<tr>
							<td valign="top">
								<table border="0" cellspacing="0" cellpadding="0">
                                    <tr>
										<td>
<script type="text/javascript">
managertree = new dTree('managertree');
managertree.config.useCookies = true;
managertree.add(1,-1,'栏目管理','','','mainFrame');
<%
for(int i=0;i<datalist.Count;i++){
OgilvyOne.Model.UserColumnModel uc = (OgilvyOne.Model.UserColumnModel)datalist[i];
int columnid= uc.Columnid;
string linkurl = "column_list.aspx?columnid=" + columnid +"&layerid=" + uc.Layerid;


    if (uc.Parentid==0){%>
	managertree.add(<%=columnid%>,0,'<%=uc.Columnname.Replace("'","\\'")%>','<%=linkurl%>','','mainFrame');
   <% }else{%>
	managertree.add(<%=columnid%>,<%=uc.Parentid%>,'<%=uc.Columnname.Replace("'","\\'")%>','<%=linkurl%>','','mainFrame');
	<%}%>
	if(managertree.getSelected()==1) window.open('<%=linkurl%>','mainFrame');
<%} %>	
document.write(managertree);
</script>

											<br>
											<br>
										</td>
									</tr>
									<tr>
										<td height="35"></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td align="center" valign="top">
								<p>
									&nbsp;
								</p>
								<p>
									&nbsp;
								</p>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>


	</body>
</html>
